Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #62: fix claims for complex and weird paths #304

Closed
wants to merge 4 commits into from

Conversation

kcajmagic
Copy link
Member

  • fixes issue Claims Validation Error #62
  • update handling of paths by parsing it through the url package
  • added tests to validate claims and weird paths

- fixes issue xmidt-org#62
- update handling of paths by parsing it through the url package
- added tests to validate claims and weird paths
@kcajmagic kcajmagic changed the title Fix #32: fix claims for complex and weird paths (DO NOT MERGE) Fix #62: fix claims for complex and weird paths (DO NOT MERGE) Aug 9, 2018
@codecov
Copy link

codecov bot commented Aug 9, 2018

Codecov Report

Merging #304 into master will increase coverage by 0.08%.
The diff coverage is 64.7%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #304      +/-   ##
==========================================
+ Coverage   68.24%   68.33%   +0.08%     
==========================================
  Files         174      174              
  Lines       11475    11478       +3     
==========================================
+ Hits         7831     7843      +12     
+ Misses       2907     2896      -11     
- Partials      737      739       +2
Impacted Files Coverage Δ
service/instance.go 94.44% <100%> (ø) ⬆️
secure/validator.go 79.2% <62.5%> (+6.24%) ⬆️
device/device.go 71.11% <0%> (+2.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9ec96d...2094bef. Read the comment docs.

@kcajmagic kcajmagic changed the title Fix #62: fix claims for complex and weird paths (DO NOT MERGE) Fix #62: fix claims for complex and weird paths Aug 9, 2018
if path, ok = record.context.Value("path").(string); ok {
path = record.context.Value("path").(string)
}
fmt.Printf("ctx method: %s, ctx path: %s, claims: %v, expectedValid: %v\n", method, path, record.claims, record.expectedValid)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove print statement

@kristinapathak
Copy link
Contributor

Since we're deprecating/removing the secure package, I'm closing this PR.

@kcajmagic kcajmagic deleted the fixClaimRegex branch September 23, 2019 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants